home *** CD-ROM | disk | FTP | other *** search
/ Champak Vol E-12 / Vol E-12.iso / games / barbie / barbie_l.swf / scripts / frame_4 / PlaceObject2_47_42 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Text File  |  2012-05-21  |  488b  |  28 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.starstart == 0)
  3.    {
  4.       if(_root.countstars == 0)
  5.       {
  6.          _root.starstart = 1;
  7.          _root.reset = 1;
  8.          _root.fadeout = 1;
  9.       }
  10.    }
  11.    if(_root.candy == 1)
  12.    {
  13.       if(440 >= candycount)
  14.       {
  15.          candycount += 1;
  16.       }
  17.       else
  18.       {
  19.          with(_root.walls.door)
  20.          {
  21.             gotoAndStop(1);
  22.          }
  23.          _root.candy = 0;
  24.          candycount = 0;
  25.       }
  26.    }
  27. }
  28.